package com.kingyun.gpsinspection.purificationservice.facade.service.iam.qhse;

import com.alibaba.fastjson.JSONObject;
import com.kingyun.gpsinspection.purificationservice.facade.model.BootstrapSearchBean;
import com.kingyun.gpsinspection.purificationservice.facade.model.iam.qhse.SafetyRisk;

/**
 * Created by yangsy on 2016/12/13.
 */
public interface SafetyRiskService {
    int deleteByPrimaryKey(String safetyRiskId);

    int insert(SafetyRisk record);

    int insertSelective(SafetyRisk record);

    SafetyRisk selectByPrimaryKey(String safetyRiskId);

    int updateByPrimaryKeySelective(SafetyRisk record);

    int updateByPrimaryKey(SafetyRisk record);

    JSONObject list(BootstrapSearchBean bootstrapSearchBean);

    /**
     * 新增安全隐患操作
     * @param record 安全隐患业务数据
     * @param uploadFiles 需要更新的附件信息
     * @param deletedFiles 删除的附件信息，新增时候，删除附件信息为空
     * @return
     */
    int insertSelective(SafetyRisk record, String uploadFiles, String deletedFiles);


    /***
     * 修改安全隐患信息操作
     * @param record 安全隐患业务数据
     * @param uploadFiles 需要更新的附件信息
     * @param deletedFiles 删除的附件信息
     * @return
     */
    int updateByPrimaryKeySelective(SafetyRisk record, String uploadFiles, String deletedFiles);
}
